//#define __DEBUG__
// by Tyrghen
#define THIS_FILE "fn_isbinocular.sqf"
#include "x_setup.sqf"

private["_item","_config","_simulation"];
_item = _this select 0;
__TRACE_1("_this","_this")
if (isClass(configFile >> "CfgWeapons" >> _item)) then {
	_config = configFile >> "CfgWeapons" >> _item;
	_simulation = tolower(getText(_config >> "simulation"));
	__TRACE_1("is_binocular_type","_simulation")
	if(_simulation == "binocular" || _item == "Laserdesignator" || _simulation == "weapon") then
	{
		true;
	}
	else
	{
		false;
	};
} else {
	false;
}; 